import Vue from 'vue'
import { URL_PREFIX } from '@/api/index'

/* /command/audits
待审核指令列表 */
export const getPendingReviewDirectiveList = (params) => Vue.http.get(URL_PREFIX + '/command/audits', { params })

/* /command/abort/{id}
终止 */
export const commandAbort = (id) => Vue.http.get(URL_PREFIX + '/command/abort/' + id)

/* /command/audit_first
{
  ids: ID列表，多个使用逗号(,)分割
  message: 审核意见
  pass: boolean 是否通过审核
}
初审 */
export const commandAudit_first = (params) => Vue.http.get(URL_PREFIX + '/command/audit_first', { params })

/* /command/states/audit
查询指令状态列表 */
export const getStateList = () => Vue.http.get(URL_PREFIX + '/command/states/audit')